package org.orz.story.works.common.exception;

import org.orz.cloud.common.exception.BusinessException;
import org.orz.cloud.common.exception.ErrorCode;

public class WorksException extends BusinessException {
    public WorksException(ErrorCode code) {
        super(code);
    }

    public WorksException(String errorCode, String errorMessage) {
        super(errorCode, errorMessage);
    }


    public enum Type implements ErrorCode {
        WORKS_0001("WORKS_0001","您只能处理您自己的日记呢"),

        ;
        private String code;

        private String message;

        Type(String code, String message) {
            this.code = code;
            this.message = message;
        }

        @Override
        public String getCode() {
            return code;
        }

        @Override
        public String getMessage() {
            return message;
        }
    }



}
